
import Cookies from 'js-cookie'


// 登出
export function logout() {
    common()
    window.location.href='/'
}

// 登录
export function login() {
    common()
    window.location.href = "/api/login";
}
function common() {
    sessionStorage.clear()
    localStorage.clear()
}
